package io.github.biezhi.java8.completablefuture;

import java.util.ArrayList;
import java.util.HashSet;

public class ListToSet {
    public static void main(String[] args) {
        ArrayList<String> stringList = new ArrayList<>();
        stringList.add("a");
        stringList.add("b");
        stringList.add("c");
        stringList.add("a");
        stringList.add("b");
        HashSet<String> stringSet = new HashSet<>(stringList);
        stringSet.forEach(System.out::println);
    }
}
